<template>
    <el-container>
      <el-header class="header">
        Header
        <el-button @click="logout">退出</el-button>
      </el-header>
      <el-container >
        <el-aside width="200px" class="aside-container">Aside</el-aside>
        <el-main class="main-container">Main</el-main>
      </el-container>
    </el-container>
</template>

<script>
export default {
  name: 'home',
  methods: {
    logout() {
      window.sessionStorage.clear()
      this.$router.push('/login')
    },
  },
}
</script>

<style lang="less" scoped>
  .header {
    background-color: #373d41;
  }
  .aside-container {
    background-color: #333744;
  }
  .main-container {
    background-color: #eaedf1;
  }
</style>
